<HTML>
<HEAD><TITLE>DENIM Output</TITLE>
<style type="text/css">body {margin-left: 0; margin-top: 0} #dnmbackground {position: absolute; top: 0px; left: 0px; z-index: 0}</style>
<SCRIPT language="JavaScript">
imagemaptable = new Array();

conditiontable = new Array();
conditiontable[1] = new Array();

btnconditiontable = new Array();
btnconditiontable[1] = new Array();

function btnclicked(btnid)
{
    for (j = 0; j<btnconditiontable[currentcondition].length; j++) {
        if(btnconditiontable[currentcondition][j]==btnid) {
            document.location = btnconditiontable[currentcondition][j+1];
            break;
        }
    }
}


currentcondition = 1;

function listupdated(listid) {
    component = document.getElementById(listid);
    expectStates = new Array();
    for (j = 0; j<conditiontable[currentcondition].length; j++) {
        expectStates[j] = conditiontable[currentcondition][j];
        if(expectStates[j]==listid) {
            expectStates[j+1] = '' + component.options.selectedIndex;
            j++;
        }
    }

    for (i = 1; i<conditiontable.length; i++) {
        if(i==currentcondition)
            continue;
        for (j = 0; j<expectStates.length; j++) {
            if(expectStates[j]!=conditiontable[i][j])
                break;
        }

        if(j == expectStates.length)
        {
            currentcondition = i;
            img = document.getElementById('dnmbackground');
            img.setAttribute('USEMAP', '#condition'+currentcondition);
        }
    }
}


function updatecondition(compid) {
    component = document.getElementById(compid);
    expectStates = new Array();
    for (j = 0; j<conditiontable[currentcondition].length; j++) {
        expectStates[j] = conditiontable[currentcondition][j];
        if(expectStates[j]==compid) {
            if(component.checked)
            {
                expectStates[j+1] = 'true';
            }
            else
            {
                expectStates[j+1] = 'false';
            }
            j++;
        }
    }

    for (i = 1; i<conditiontable.length; i++) {
        if(i==currentcondition)
            continue;
        for (j = 0; j<expectStates.length; j++) {
            if(expectStates[j]!=conditiontable[i][j])
                break;
        }

        if(j == expectStates.length)
        {
            currentcondition = i;
            img = document.getElementById('dnmbackground');
            img.setAttribute('USEMAP', '#condition'+currentcondition);
        }
    }
}


function selectItem(linkid) {
    i = 0;
    for (; i < imagemaptable.length; i++) {
        if(imagemaptable[i][0]==linkid) {
            instanceID = imagemaptable[i][1];
            destMapName = imagemaptable[i][2];
            nextSrcImg = imagemaptable[i][3];

            img = document.getElementById(instanceID);
            img.setAttribute('SRC', nextSrcImg);
            img.setAttribute('USEMAP', '#'+destMapName);
            
            break;
        }
    }

    expectStates = new Array();
    for (j = 0; j<conditiontable[currentcondition].length; j++) {
        expectStates[j] = conditiontable[currentcondition][j];
        if(expectStates[j]==instanceID) {
            expectStates[j+1] = imagemaptable[i][4];
            j++;
        }
    }

    for (i = 1; i<conditiontable.length; i++) {
        if(i==currentcondition)
            continue;
        for (j = 0; j<expectStates.length; j++) {
            if(expectStates[j]!=conditiontable[i][j])
                break;
        }

        if(j == expectStates.length)
        {
            currentcondition = i;
            img = document.getElementById('dnmbackground');
            img.setAttribute('USEMAP', '#condition'+currentcondition);
        }
    }
}

</SCRIPT>
</HEAD>
<BODY>
<MAP NAME="condition1">
</MAP>
<IMG id="dnmbackground" SRC="page1286507009816.jpg" USEMAP="#condition1" border=0>
<FORM></FORM>
</BODY>
</HTML>
